package com.shuke.my_test.shardingSphere.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuke.my_test.shardingSphere.domain.UserInfo;
import com.shuke.my_test.shardingSphere.mapper.UserInfoMapper;
import com.shuke.my_test.shardingSphere.service.UserInfoService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
* @author 16422
* @description 针对表【user_info(用户信息表)】的数据库操作Service实现
* @createDate 2025-07-25 10:05:32
*/
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo>
    implements UserInfoService {


    @Override
    public void addUser(UserInfo userInfo) {
        baseMapper.insert(userInfo);
    }

    @Override
    public UserInfo selectUser(String id) {
        return baseMapper.selectById(id);
    }
}




